<%--
  Created by IntelliJ IDEA.
  User: Acer
  Date: 2020/9/1
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="rapid" uri="http://www.rapid-framework.org.cn/rapid" %>
<html>
<head>
    <rapid:block name="head"></rapid:block>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/layui.css">

    <style>
        body{
            background-image: url('/statics/images/bg.jpg');
        }
        .layui-nav-item.side a {
            font-size: 22px;
            margin: 10px;
        }
        #right_float{
            float: right;
        }
    </style>


    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()  + path + "/";

    %>

</head>
<body class="layui-layout-body" style="padding:10px 50px;">
<%--<h2> 欢迎来到学生首页</h2>--%>
<ul class="layui-nav layui-bg-green" >
    <li class="layui-nav-item"><a href="<%=basePath%>teacher/teacherIndex">首页</a></li>
    <li class="layui-nav-item">
        <a href="<%=basePath%>teacher/courseList?page=1">选课信息</a>
    </li>

    <div id="right_float">
        <li class="layui-nav-item">
            <a href="<%=basePath%>teacher/teacherInfo?teaId=${sessionScope.teaid}">个人中心</a>
        </li>
        <li class="layui-nav-item" lay-unselect="">
            <a href="javascript:;"><i class="layui-icon" style="font-size:18px;" >&#xe612;</i>&nbsp;${sessionScope.username}&nbsp;</a>
            <dl class="layui-nav-child">
                <dd><a href="<%=basePath%>teacher/teacherInfo?teaId=${sessionScope.teaid}">修改信息</a></dd>
                <dd><a href="<%=basePath%>exit">退了</a></dd>
            </dl>
        </li>
    </div>

</ul>

<rapid:block name="content"></rapid:block>

<script src="${pageContext.request.contextPath}/statics/layui.all.js"></script>
</body>
</html>
